package org.example.io;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;

public class TestBufferedOutputStream {
    public static void main(String[] args) throws Exception{
        //创建字节缓冲输出流
        BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream("D:\\tmp\\111.txt"));
        //写入数据
        stream.write("aaaaaaaaaaaaaaaaaaaa".getBytes());
        //关闭流
        stream.close();
    }
}
